package com.zpark.interceptor;

import org.springframework.stereotype.Component;
import org.springframework.web.servlet.HandlerInterceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @PackageName: com.zpark.interceptor
 * @ClassName: MyInterceptor
 * @Description:
 * @author: RZS
 * @date: 2023/4/17  14:59
 */
@Component
public class MyInterceptor implements HandlerInterceptor {

    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {

        System.out.println("请求经过拦截器");

        return true;
    }
}
